package com.starmark.sys.org.atomic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.starmark.core.framework.base.AbstractBaseService;
import com.starmark.sys.org.atomic.entity.SysOrgPost;
import com.starmark.sys.org.atomic.mapper.SysOrgPostMapper;
import com.starmark.sys.org.atomic.service.ISysOrgPostService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 岗位 服务实现类
 * </p>
 *
 * @author starmark
 * @since 2020-08-06
 */
@Service
public class SysOrgPostServiceImpl extends AbstractBaseService<SysOrgPostMapper, SysOrgPost> implements ISysOrgPostService  {


@Override
public void buildPageSearch(Map<String, Object> params, QueryWrapper< SysOrgPost> eWrapper) {
        if(params.get("keyword")!=null&& StrUtil.isNotEmpty(params.get("keyword")+"")){
        eWrapper.like("name",params.get("keyword")+"");
        }

        }
}
